From c015744b65cbd78a0ce629fbebfefa4001fb83cb Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 14 May 2016 23:49:39 +0300 Subject: [PATCH] fix test_cargo_build_auth --- tests/test_cargo_build_auth.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tests/test_cargo_build_auth.rs b/tests/test_cargo_build_auth.rs index c12bb81a7..1276f2c12 100644 --- a/tests/test_cargo_build_auth.rs +++ b/tests/test_cargo_build_auth.rs @@ -99,12 +99,8 @@ test!(http_auth_offered { "); assert_that(p.cargo_process("build"), - execs().with_status(101).with_stdout(&format!("\ + execs().with_status(101).with_stderr(&format!("\ [UPDATING] git repository `http://{addr}/foo/bar` -", - addr = addr, - )) - .with_stderr(&format!("\ [ERROR] Unable to update http://{addr}/foo/bar Caused by: @@ -146,7 +142,7 @@ test!(https_something_happens { "); assert_that(p.cargo_process("build").arg("-v"), - execs().with_status(101).with_stdout(&format!("\ + execs().with_status(101).with_stderr_contains(&format!("\ [UPDATING] git repository `https://{addr}/foo/bar` ", addr = addr, @@ -190,7 +186,7 @@ test!(ssh_something_happens { .file("src/main.rs", ""); assert_that(p.cargo_process("build").arg("-v"), - execs().with_status(101).with_stdout(&format!("\ + execs().with_status(101).with_stderr_contains(&format!("\ [UPDATING] git repository `ssh://{addr}/foo/bar` ", addr = addr, -- 2.30.2